package com.xiaolong.common.config;

import com.xiaolong.common.utils.SpringUtil;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
public class CommonBeanAutoConfiguration {

    @Bean("springUtil")
    @ConditionalOnMissingBean
    public SpringUtil springUtil(){
        return new SpringUtil();
    }
}
